package com.agileai.bpm.bizmoduler.define;

import com.agileai.domain.DataParam;
import com.agileai.domain.DataRow;
import com.agileai.hotweb.bizmoduler.core.StandardServiceImpl;

public class WfActivityManageImpl extends StandardServiceImpl 
	implements WfActivityManage {
	
	public WfActivityManageImpl(){
		super();
	}

	@Override
	public void updateRecord(String activityId, DataParam param) {
		String statementId = this.sqlNameSpace + ".getRecord";
		DataParam queryParam = new DataParam("WFA_ID",activityId);
		DataRow record = this.daoHelper.getRecord(statementId, queryParam);
		DataParam realParam = new DataParam();
		realParam.update(record);
		realParam.put("WFA_CODE",param.get("WFA_CODE"));
		realParam.put("WFA_NAME",param.get("WFA_NAME"));
		realParam.put("WFA_BIZ_URL",param.get("WFA_BIZ_URL"));
		realParam.put("WFA_DESC",param.get("WFA_DESC"));
		
		statementId = this.sqlNameSpace + ".updateRecord"; 
 		this.daoHelper.updateRecord(statementId, realParam);
	}
}
